package whisper.service.auth.shiro.token;

import org.apache.shiro.authc.AuthenticationToken;

/**
 * Created by JT on 2018/5/30
 */
public class JWTToken implements AuthenticationToken {

    private String jwtToken;

    public JWTToken(String jwtToken) {
        this.jwtToken = jwtToken;
    }

    @Override
    public Object getPrincipal() {
        return this.jwtToken;
    }

    @Override
    public Object getCredentials() {
        return this.jwtToken;
    }
}
